serialization bugfix for php 5.4