Prevent empty transactions