fixed bug which would delete static (custom) pages

#147