Fixed bug saving singles into database