Fixed strange bug