My parents keep saying that the following sentence is incorrect because there is a mistake with the dangling modifer but I think it's correct.

"Feared for its rapid fire, the machine gun intimidated every soldier on the battlefield."

Could someone tell me if it's right or wrong, and why? Thanks in advance!