Persistence on your part will pay off. Be consistent and keep putting them in until they "get it". The only exception to this is if there is some serious failure regarding your coop and it not having the ability to meet their roosting/feeling of security needs. I think it's rare that that's the case and more common that they simply don't know that the coop is home base and where they can expect to be safe during the most vulnerable time.