bug in code in post