If you have an empty magazine in there, the bolt will stay open. It's supposed to do that.

Eject the magazine and re-work the action.