Fixed bug in custom post builder