fixed a bug, when more than 1 message was created at the exact same time it threw an error