I would suggest wiring it properly (not saying what you have done is wrong) - Live wire straight from the battery, then the remote from the headunit to the sub to tell it to turn on.
Also make sure that the earth wire is touching bare metal not a painted surface - this is one of the most important things that you need in the system
Also make sure the fuse is the right amount to work with your wiring